home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_393_a1E8 < prev    next >
Unknown  |  1994-07-14  |  5.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 28 00 00 06 47 00 00 | 00 28 61 31 45 38 00 00 |.(...G..|.(a1E8..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0e 44 6f 57 69 6e | 64 6f 77 43 75 72 73 6f |...DoWin|dowCurso|
|00000060| 72 00 00 06 00 00 00 00 | 00 74 00 00 06 48 00 00 |r.......|.t...H..|
|00000070| 00 74 00 00 00 14 03 c1 | 00 28 05 7e 00 ff 00 00 |.t......|.(.~....|
|00000080| 00 00 00 00 0f a8 00 00 | 00 00 4e 1c 00 00 00 09 |........|..N.....|
|00000090| 00 00 00 04 00 04 ff fc | ff fa 00 04 00 04 ff fc |........|........|
|000000a0| ff fc 00 00 00 00 00 00 | 00 00 83 00 0b 40 10 6b |........|.....@.k|
|000000b0| 53 63 72 65 65 6e 41 50 | 49 2f 31 39 39 39 36 00 |ScreenAP|I/19996.|
|000000c0| 06 47 65 6e 65 76 61 00 | 00 1a 76 6f 69 64 20 44 |.Geneva.|..void D|
|000000d0| 6f 57 69 6e 64 6f 77 43 | 75 72 73 6f 72 28 76 6f |oWindowC|ursor(vo|
|000000e0| 69 64 29 3b 00 00 00 06 | 00 00 00 00 00 ab 00 00 |id);....|........|
|000000f0| 06 49 00 00 00 ab 00 00 | 00 00 03 c1 00 14 05 7e |.I......|.......~|
|00000100| 00 ff 00 00 00 00 00 00 | 0f a8 00 00 00 00 4e 1d |........|......N.|
|00000110| 00 00 00 09 00 00 00 04 | 00 04 ff fc ff fa 00 04 |........|........|
|00000120| 00 04 ff fc ff fc 00 00 | 00 00 00 00 00 00 83 00 |........|........|
|00000130| 0b 40 14 6b 53 63 72 65 | 65 6e 4f 6e 65 4c 69 6e |.@.kScre|enOneLin|
|00000140| 65 2f 31 39 39 39 37 00 | 06 47 65 6e 65 76 61 00 |e/19997.|.Geneva.|
|00000150| 00 4d 49 74 65 72 61 74 | 65 73 20 74 68 72 6f 75 |.MIterat|es throu|
|00000160| 67 68 20 74 68 65 20 77 | 69 6e 64 6f 77 73 2c 20 |gh the w|indows, |
|00000170| 67 69 76 69 6e 67 20 74 | 68 65 20 64 6f 63 75 6d |giving t|he docum|
|00000180| 65 6e 74 20 61 20 63 68 | 61 6e 63 65 20 74 6f 20 |ent a ch|ance to |
|00000190| 73 65 74 20 74 68 65 20 | 63 75 72 73 6f 72 2e 00 |set the |cursor..|
|000001a0| 00 00 06 00 00 00 00 00 | 44 00 00 06 4a 00 00 00 |........|D...J...|
|000001b0| 44 00 00 00 00 02 6b 04 | 40 02 6c 01 00 00 00 00 |D.....k.|@.l.....|
|000001c0| 00 00 01 0f f1 00 00 00 | 00 00 00 00 00 00 0c 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 06 00 | 00 00 00 00 7f 00 00 06 |........|........|
|00000200| 4b 00 00 00 7f 00 00 00 | 00 02 6b 02 28 03 c1 00 |K.......|..k.(...|
|00000210| ff 00 00 00 00 00 00 0f | a8 00 00 00 00 4e 16 00 |........|.....N..|
|00000220| 00 00 09 00 00 00 04 00 | 04 ff fc ff fa 00 04 00 |........|........|
|00000230| 04 ff fc ff fc 00 00 00 | 00 00 00 00 00 83 00 0b |........|........|
|00000240| 40 0b 6c 69 6e 6b 73 2f | 31 39 39 39 30 00 06 4d |@.links/|19990..M|
|00000250| 6f 6e 61 63 6f 00 00 14 | 61 31 45 38 2c 44 6f 57 |onaco...|a1E8,DoW|
|00000260| 69 6e 64 6f 77 43 75 72 | 73 6f 72 0d 00 16 00 01 |indowCur|sor.....|
|00000270| 00 00 00 00 00 10 00 0c | 00 01 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 06 00 00 | 00 00 14 1c 00 00 06 4c |........|.......L|
|00000290| 00 00 14 1c 00 00 00 00 | 00 00 75 30 02 6b 01 ff |........|..u0.k..|
|000002a0| 00 00 00 00 00 00 0f a8 | 00 00 00 00 4e 1f 00 00 |........|....N...|
|000002b0| 00 09 00 00 00 04 00 04 | ff fc ff fa 00 04 00 04 |........|........|
|000002c0| ff fc ff fc 00 00 00 00 | 00 00 00 00 83 00 0b 40 |........|.......@|
|000002d0| 0a 62 6f 64 79 2f 31 39 | 39 39 39 00 06 4d 6f 6e |.body/19|999..Mon|
|000002e0| 61 63 6f 00 13 b2 76 6f | 69 64 20 44 6f 57 69 6e |aco...vo|id DoWin|
|000002f0| 64 6f 77 43 75 72 73 6f | 72 28 76 6f 69 64 29 3b |dowCurso|r(void);|
|00000300| 0d 0d 43 61 6c 6c 20 74 | 68 69 73 20 66 75 6e 63 |..Call t|his func|
|00000310| 74 69 6f 6e 20 74 6f 20 | 63 61 6c 63 75 6c 61 74 |tion to |calculat|
|00000320| 65 20 77 68 61 74 20 74 | 68 65 20 63 75 72 73 6f |e what t|he curso|
|00000330| 72 20 73 68 6f 75 6c 64 | 20 62 65 20 66 6f 72 20 |r should| be for |
|00000340| 76 61 72 69 6f 75 73 20 | 77 69 6e 64 6f 77 73 2e |various |windows.|
|00000350| 0d 54 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 74 |.The res|ult of t|
|00000360| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |his func|tion is |
|00000370| 74 6f 20 73 65 74 20 74 | 68 65 20 63 75 72 73 6f |to set t|he curso|
|00000380| 72 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 63 |r based |on the c|
|00000390| 75 72 72 65 6e 74 20 6d | 6f 75 73 65 0d 70 6f 73 |urrent m|ouse.pos|
|000003a0| 69 74 69 6f 6e 2e 20 20 | 49 6e 20 61 64 64 69 74 |ition. |In addit|
|000003b0| 69 6f 6e 20 74 6f 20 73 | 65 74 74 69 6e 67 20 74 |ion to s|etting t|
|000003c0| 68 65 20 63 75 72 73 6f | 72 2c 20 74 68 65 20 63 |he curso|r, the c|
|000003d0| 75 72 73 6f 72 20 72 65 | 67 69 6f 6e 20 69 73 20 |ursor re|gion is |
|000003e0| 63 61 6c 63 75 6c 61 74 | 65 64 2e 0d 54 68 65 20 |calculat|ed..The |
|000003f0| 63 75 72 73 6f 72 20 72 | 65 67 69 6f 6e 20 69 73 |cursor r|egion is|
|00000400| 20 6b 65 70 74 20 69 6e | 20 74 68 65 20 67 6c 6f | kept in| the glo|
|00000410| 62 61 6c 20 76 61 72 69 | 61 62 6c 65 20 67 43 75 |bal vari|able gCu|
|00000420| 72 73 6f 72 52 67 6e 2e | 0d 54 68 69 73 20 66 75 |rsorRgn.|.This fu|
|00000430| 6e 63 74 69 6f 6e 20 77 | 61 6c 6b 73 20 74 68 65 |nction w|alks the|
|00000440| 20 77 69 6e 64 6f 77 20 | 6c 69 73 74 2c 20 61 6e | window |list, an|
|00000450| 64 20 66 6f 72 20 65 61 | 63 68 20 64 6f 63 75 6d |d for ea|ch docum|
|00000460| 65 6e 74 20 77 69 6e 64 | 6f 77 2c 20 69 74 20 63 |ent wind|ow, it c|
|00000470| 61 6c 6c 73 20 74 68 65 | 0d 77 69 6e 64 6f 77 d5 |alls the|.window.|
|00000480| 73 20 63 75 72 73 6f 72 | 20 68 61 6e 64 6c 69 6e |s cursor| handlin|
|00000490| 67 20 70 72 6f 63 65 64 | 75 72 65 2e 20 20 54 68 |g proced|ure. Th|
|000004a0| 65 20 63 75 72 73 6f 72 | 20 68 61 6e 64 6c 69 6e |e cursor| handlin|
|000004b0| 67 20 70 72 6f 63 65 64 | 75 72 65 20 69 73 20 73 |g proced|ure is s|
|000004c0| 74 6f 72 65 64 20 69 6e | 0d 74 68 65 20 66 72 48 |tored in|.the frH|
|000004d0| 6e 64 6c 20 66 69 65 6c | 64 20 77 69 6e 64 6f 77 |ndl fiel|d window|
|000004e0| 43 75 72 73 6f 72 50 72 | 6f 63 2e 0d 48 65 72 65 |CursorPr|oc..Here|
|000004f0| 20 61 72 65 20 74 68 65 | 20 72 75 6c 65 73 20 66 | are the| rules f|
|00000500| 6f 72 20 63 75 72 73 6f | 72 20 61 6e 64 20 67 43 |or curso|r and gC|
|00000510| 75 72 73 6f 72 52 67 6e | 20 64 65 74 65 72 6d 69 |ursorRgn| determi|
|00000520| 6e 61 74 69 6f 6e 3a 0d | 0d 31 29 20 20 53 65 65 |nation:.|.1) See|
|00000530| 20 69 66 20 74 68 65 20 | 6d 6f 75 73 65 20 70 6f | if the |mouse po|
|00000540| 73 69 74 69 6f 6e 20 69 | 73 20 63 75 72 72 65 6e |sition i|s curren|
|00000550| 74 6c 79 20 69 6e 73 69 | 64 65 20 74 68 65 20 67 |tly insi|de the g|
|00000560| 43 75 72 73 6f 72 52 67 | 6e 2e 20 20 49 66 20 73 |CursorRg|n. If s|
|00000570| 6f 2c 20 6c 65 61 76 65 | 2e 0d 32 29 20 20 53 69 |o, leave|..2) Si|
|00000580| 6e 63 65 20 74 68 65 20 | 6d 6f 75 73 65 20 70 6f |nce the |mouse po|
|00000590| 73 69 74 69 6f 6e 20 69 | 73 20 6f 75 74 73 69 64 |sition i|s outsid|
|000005a0| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 67 43 |e the cu|rrent gC|
|000005b0| 75 72 73 6f 72 52 67 6e | 2c 20 77 65 20 6e 65 65 |ursorRgn|, we nee|
|000005c0| 64 20 74 6f 0d 20 20 20 | 20 72 65 63 61 6c 63 75 |d to. | recalcu|
|000005d0| 6c 61 74 65 20 74 68 65 | 20 63 75 72 73 6f 72 2e |late the| cursor.|
|000005e0| 20 20 53 65 74 20 74 68 | 65 20 67 43 75 72 73 6f | Set th|e gCurso|
|000005f0| 72 52 67 6e 20 74 6f 20 | 77 69 64 65 2d 6f 70 65 |rRgn to |wide-ope|
|00000600| 6e 2e 20 20 46 72 6f 6d | 20 6e 6f 77 20 6f 6e 2c |n. From| now on,|
|00000610| 20 77 65 0d 20 20 20 20 | 77 69 6c 6c 20 65 6c 69 | we. |will eli|
|00000620| 6d 69 6e 61 74 65 20 61 | 72 65 61 73 20 66 72 6f |minate a|reas fro|
|00000630| 6d 20 67 43 75 72 73 6f | 72 52 67 6e 20 74 68 61 |m gCurso|rRgn tha|
|00000640| 74 20 64 6f 6e d5 74 20 | 61 70 70 6c 79 20 74 6f |t don.t |apply to|
|00000650| 20 74 68 65 20 6e 65 77 | 20 6d 6f 75 73 65 0d 20 | the new| mouse. |
|00000660| 20 20 20 6c 6f 63 61 74 | 69 6f 6e 20 61 6e 64 20 | locat|ion and |
|00000670| 6e 65 77 20 63 75 72 73 | 6f 72 2e 0d 33 29 20 20 |new curs|or..3) |
|00000680| 46 6f 72 20 65 61 63 68 | 20 76 69 73 69 62 6c 65 |For each| visible|
|00000690| 20 77 69 6e 64 6f 77 20 | 28 73 74 61 72 74 69 6e | window |(startin|
|000006a0| 67 20 77 69 74 68 20 74 | 68 65 20 66 72 6f 6e 74 |g with t|he front|
|000006b0| 20 77 69 6e 64 6f 77 29 | 3a 0d 20 20 20 20 61 29 | window)|:. a)|
|000006c0| 20 20 49 66 20 74 68 65 | 20 77 69 6e 64 6f 77 43 | If the| windowC|
|000006d0| 75 72 73 6f 72 50 72 6f | 63 20 69 73 20 6e 69 6c |ursorPro|c is nil|
|000006e0| 20 61 6e 64 20 74 68 65 | 20 6d 6f 75 73 65 20 70 | and the| mouse p|
|000006f0| 6f 73 69 74 69 6f 6e 20 | 69 73 20 6f 76 65 72 20 |osition |is over |
|00000700| 74 68 65 20 73 74 72 75 | 63 74 75 72 65 0d 20 20 |the stru|cture. |
|00000710| 20 20 20 20 20 20 72 65 | 67 69 6f 6e 20 6f 66 20 | re|gion of |
|00000720| 74 68 65 20 77 69 6e 64 | 6f 77 2c 20 73 65 74 20 |the wind|ow, set |
|00000730| 74 68 65 20 63 75 72 73 | 6f 72 20 74 6f 20 61 6e |the curs|or to an|
|00000740| 20 61 72 72 6f 77 20 61 | 6e 64 20 69 6e 74 65 72 | arrow a|nd inter|
|00000750| 73 65 63 74 20 74 68 65 | 20 67 43 75 72 73 6f 72 |sect the| gCursor|
|00000760| 52 67 6e 0d 20 20 20 20 | 20 20 20 20 77 69 74 68 |Rgn. | with|
|00000770| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 20 72 | the str|ucture r|
|00000780| 65 67 69 6f 6e 20 6f 66 | 20 74 68 65 20 77 69 6e |egion of| the win|
|00000790| 64 6f 77 2e 20 20 54 68 | 69 73 20 6c 69 6d 69 74 |dow. Th|is limit|
|000007a0| 73 20 74 68 65 20 63 75 | 72 73 6f 72 20 74 6f 20 |s the cu|rsor to |
|000007b0| 74 68 65 20 61 72 65 61 | 0d 20 20 20 20 20 20 20 |the area|. |
|000007c0| 20 6f 66 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 | of the |window t|
|000007d0| 68 61 74 20 69 73 20 76 | 69 73 69 62 6c 65 2e 0d |hat is v|isible..|
|000007e0| 20 20 20 20 62 29 20 20 | 49 66 20 74 68 65 20 77 | b) |If the w|
|000007f0| 69 6e 64 6f 77 43 75 72 | 73 6f 72 50 72 6f 63 20 |indowCur|sorProc |
|00000800| 69 73 20 6e 69 6c 20 61 | 6e 64 20 74 68 65 20 6d |is nil a|nd the m|
|00000810| 6f 75 73 65 20 70 6f 73 | 69 74 69 6f 6e 20 69 73 |ouse pos|ition is|
|00000820| 20 6f 75 74 73 69 64 65 | 20 74 68 65 0d 20 20 20 | outside| the. |
|00000830| 20 20 20 20 20 73 74 72 | 75 63 74 75 72 65 20 72 | str|ucture r|
|00000840| 65 67 69 6f 6e 20 6f 66 | 20 74 68 65 20 77 69 6e |egion of| the win|
|00000850| 64 6f 77 2c 20 64 69 66 | 66 20 6f 75 74 20 74 68 |dow, dif|f out th|
|00000860| 65 20 73 74 72 75 63 74 | 75 72 65 20 72 65 67 69 |e struct|ure regi|
|00000870| 6f 6e 20 66 72 6f 6d 0d | 20 20 20 20 20 20 20 20 |on from.| |
|00000880| 67 43 75 72 73 6f 72 52 | 67 6e 20 61 6e 64 20 70 |gCursorR|gn and p|
|00000890| 72 6f 63 65 65 64 20 74 | 6f 20 74 68 65 20 6e 65 |roceed t|o the ne|
|000008a0| 78 74 20 76 69 73 69 62 | 6c 65 20 77 69 6e 64 6f |xt visib|le windo|
|000008b0| 77 20 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |w in the| window |
|000008c0| 6c 69 73 74 2e 0d 20 20 | 20 20 63 29 20 20 49 66 |list.. | c) If|
|000008d0| 20 74 68 65 20 77 69 6e | 64 6f 77 43 75 72 73 6f | the win|dowCurso|
|000008e0| 72 50 72 6f 63 20 69 73 | 20 6e 6f 74 20 6e 69 6c |rProc is| not nil|
|000008f0| 2c 20 63 61 6c 6c 20 74 | 68 65 20 70 72 6f 63 65 |, call t|he proce|
|00000900| 64 75 72 65 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |dure. N|ote that|
|00000910| 20 74 68 65 0d 20 20 20 | 20 20 20 20 20 70 72 6f | the. | pro|
|00000920| 63 65 64 75 72 65 20 69 | 73 20 63 61 6c 6c 65 64 |cedure i|s called|
|00000930| 20 77 68 65 74 68 65 72 | 20 6f 72 20 6e 6f 74 20 | whether| or not |
|00000940| 74 68 65 20 6d 6f 75 73 | 65 20 6c 6f 63 61 74 69 |the mous|e locati|
|00000950| 6f 6e 20 69 73 20 6f 76 | 65 72 20 74 68 65 20 77 |on is ov|er the w|
|00000960| 69 6e 64 6f 77 2e 0d 20 | 20 20 20 20 20 20 20 54 |indow.. | T|
|00000970| 68 69 73 20 69 73 20 74 | 6f 20 61 6c 6c 6f 77 20 |his is t|o allow |
|00000980| 74 68 65 20 70 72 6f 63 | 65 64 75 72 65 20 74 6f |the proc|edure to|
|00000990| 20 64 65 74 65 72 6d 69 | 6e 65 20 69 66 20 69 74 | determi|ne if it|
|000009a0| 20 73 68 6f 75 6c 64 20 | 62 65 20 74 68 65 20 6c | should |be the l|
|000009b0| 61 73 74 0d 20 20 20 20 | 20 20 20 20 77 69 6e 64 |ast. | wind|
|000009c0| 6f 77 20 63 68 65 63 6b | 65 64 2e 0d 20 20 20 20 |ow check|ed.. |
|000009d0| 20 20 20 20 54 68 65 20 | 70 72 6f 63 d5 73 20 6a | The |proc.s j|
|000009e0| 6f 62 20 69 73 20 61 73 | 20 66 6f 6c 6c 6f 77 73 |ob is as| follows|
|000009f0| 3a 0d 20 20 20 20 20 20 | 20 20 31 29 20 20 49 66 |:. | 1) If|
|00000a00| 20 74 68 65 20 63 75 72 | 73 6f 72 20 69 73 20 6f | the cur|sor is o|
|00000a10| 76 65 72 20 61 20 70 6f | 73 69 74 69 6f 6e 20 74 |ver a po|sition t|
|00000a20| 68 61 74 20 69 73 20 64 | 65 74 65 72 6d 69 6e 65 |hat is d|etermine|
|00000a30| 64 20 62 79 20 74 68 65 | 20 77 69 6e 64 6f 77 2c |d by the| window,|
|00000a40| 20 74 68 65 6e 0d 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00000a50| 20 20 74 68 65 20 70 72 | 6f 63 20 72 65 6d 6f 76 | the pr|oc remov|
|00000a60| 65 73 20 6f 74 68 65 72 | 20 61 72 65 61 73 20 66 |es other| areas f|
|00000a70| 72 6f 6d 20 67 43 75 72 | 73 6f 72 52 67 6e 2e 20 |rom gCur|sorRgn. |
|00000a80| 20 4e 6f 74 65 20 74 68 | 61 74 20 69 74 20 73 68 | Note th|at it sh|
|00000a90| 6f 75 6c 64 20 6e 6f 74 | 0d 20 20 20 20 20 20 20 |ould not|. |
|00000aa0| 20 20 20 20 20 73 69 6d | 70 6c 79 20 73 65 74 20 | sim|ply set |
|00000ab0| 74 68 65 20 61 72 65 61 | 20 74 6f 20 77 68 61 74 |the area| to what|
|00000ac0| 20 69 74 20 22 74 68 69 | 6e 6b 73 22 20 69 73 20 | it "thi|nks" is |
|00000ad0| 74 68 65 20 63 6f 72 72 | 65 63 74 20 61 72 65 61 |the corr|ect area|
|00000ae0| 2e 20 20 54 68 69 73 20 | 77 69 6e 64 6f 77 0d 20 |. This |window. |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 6d 61 79 20 6e | | may n|
|00000b00| 6f 74 20 62 65 20 74 68 | 65 20 66 72 6f 6e 74 2d |ot be th|e front-|
|00000b10| 6d 6f 73 74 2e 20 20 4f | 74 68 65 72 20 77 69 6e |most. O|ther win|
|00000b20| 64 6f 77 73 20 77 69 6c | 6c 20 68 61 76 65 20 61 |dows wil|l have a|
|00000b30| 6c 72 65 61 64 79 20 62 | 65 65 6e 0d 20 20 20 20 |lready b|een. |
|00000b40| 20 20 20 20 20 20 20 20 | 73 75 62 74 72 61 63 74 | |subtract|
|00000b50| 65 64 20 66 72 6f 6d 20 | 67 43 75 72 73 6f 72 52 |ed from |gCursorR|
|00000b60| 67 6e 2e 20 20 54 68 65 | 20 72 65 73 75 6c 74 61 |gn. The| resulta|
|00000b70| 6e 74 20 67 43 75 72 73 | 6f 72 52 67 6e 20 69 73 |nt gCurs|orRgn is|
|00000b80| 20 74 68 65 20 63 6f 72 | 72 65 63 74 0d 20 20 20 | the cor|rect. |
|00000b90| 20 20 20 20 20 20 20 20 | 20 63 75 72 73 6f 72 20 | | cursor |
|00000ba0| 61 72 65 61 2c 20 61 6e | 64 20 73 68 6f 75 6c 64 |area, an|d should|
|00000bb0| 20 62 65 20 70 61 73 73 | 65 64 20 74 6f 20 57 61 | be pass|ed to Wa|
|00000bc0| 69 74 4e 65 78 74 45 76 | 65 6e 74 20 63 61 6c 6c |itNextEv|ent call|
|00000bd0| 73 20 69 6e 20 74 68 65 | 0d 20 20 20 20 20 20 20 |s in the|. |
|00000be0| 20 20 20 20 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | app|lication|
|00000bf0| 2e 20 20 41 6c 73 6f 2c | 20 74 68 65 20 63 75 72 |. Also,| the cur|
|00000c00| 73 6f 72 20 73 68 6f 75 | 6c 64 20 62 65 20 73 65 |sor shou|ld be se|
|00000c10| 74 20 74 6f 20 74 68 65 | 20 63 6f 72 72 65 63 74 |t to the| correct|
|00000c20| 20 63 75 72 73 6f 72 2c | 20 6f 66 0d 20 20 20 20 | cursor,| of. |
|00000c30| 20 20 20 20 20 20 20 20 | 63 6f 75 72 73 65 2e 20 | |course. |
|00000c40| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 61 6c 73 6f | You sho|uld also|
|00000c50| 20 72 65 74 75 72 6e 20 | 74 72 75 65 2c 20 61 73 | return |true, as|
|00000c60| 20 74 68 65 20 63 75 72 | 73 6f 72 20 68 61 73 20 | the cur|sor has |
|00000c70| 62 65 65 6e 20 64 65 74 | 65 72 6d 69 6e 65 64 2e |been det|ermined.|
|00000c80| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 54 68 65 |. | The|
|00000c90| 20 72 75 6c 65 20 6f 66 | 20 74 68 75 6d 62 20 66 | rule of| thumb f|
|00000ca0| 6f 72 20 77 68 61 74 20 | 79 6f 75 20 73 68 6f 75 |or what |you shou|
|00000cb0| 6c 64 20 64 6f 20 74 6f | 20 74 68 65 20 67 43 75 |ld do to| the gCu|
|00000cc0| 72 73 6f 72 52 67 6e 20 | 69 73 20 74 68 61 74 20 |rsorRgn |is that |
|00000cd0| 79 6f 75 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |you. | |
|00000ce0| 73 68 6f 75 6c 64 20 63 | 61 6c 63 75 6c 61 74 65 |should c|alculate|
|00000cf0| 20 74 68 65 20 63 75 72 | 73 6f 72 20 72 65 67 69 | the cur|sor regi|
|00000d00| 6f 6e 20 61 73 20 69 66 | 20 74 68 65 20 77 69 6e |on as if| the win|
|00000d10| 64 6f 77 20 77 61 73 20 | 74 68 65 20 74 6f 70 20 |dow was |the top |
|00000d20| 77 69 6e 64 6f 77 2e 0d | 20 20 20 20 20 20 20 20 |window..| |
|00000d30| 20 20 20 20 4f 6e 63 65 | 20 74 68 69 73 20 69 73 | Once| this is|
|00000d40| 20 64 6f 6e 65 2c 20 69 | 6e 74 65 72 73 65 63 74 | done, i|ntersect|
|00000d50| 20 74 68 65 20 67 43 75 | 72 73 6f 72 52 67 6e 20 | the gCu|rsorRgn |
|00000d60| 77 69 74 68 20 74 68 69 | 73 20 72 65 67 69 6f 6e |with thi|s region|
|00000d70| 2e 20 20 54 68 65 20 72 | 65 73 75 6c 74 0d 20 20 |. The r|esult. |
|00000d80| 20 20 20 20 20 20 20 20 | 20 20 73 68 6f 75 6c 64 | | should|
|00000d90| 20 62 65 20 73 74 6f 72 | 65 64 20 69 6e 20 67 43 | be stor|ed in gC|
|00000da0| 75 72 73 6f 72 52 67 6e | 2e 0d 20 20 20 20 20 20 |ursorRgn|.. |
|00000db0| 20 20 20 20 20 20 53 69 | 6e 63 65 20 79 6f 75 20 | Si|nce you |
|00000dc0| 64 65 74 65 72 6d 69 6e | 65 64 20 61 20 63 75 72 |determin|ed a cur|
|00000dd0| 73 6f 72 20 61 6e 64 20 | 67 43 75 72 73 6f 72 52 |sor and |gCursorR|
|00000de0| 67 6e 20 69 6e 20 74 68 | 69 73 20 63 61 73 65 2c |gn in th|is case,|
|00000df0| 20 79 6f 75 20 73 68 6f | 75 6c 64 0d 20 20 20 20 | you sho|uld. |
|00000e00| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 74 | |return t|
|00000e10| 72 75 65 2e 20 20 52 65 | 74 75 72 6e 69 6e 67 20 |rue. Re|turning |
|00000e20| 74 72 75 65 20 69 6e 64 | 69 63 61 74 65 73 20 74 |true ind|icates t|
|00000e30| 6f 20 44 6f 57 69 6e 64 | 6f 77 43 75 72 73 6f 72 |o DoWind|owCursor|
|00000e40| 20 74 68 61 74 20 74 68 | 65 0d 20 20 20 20 20 20 | that th|e. |
|00000e50| 20 20 20 20 20 20 63 75 | 72 73 6f 72 20 68 61 73 | cu|rsor has|
|00000e60| 20 62 65 65 6e 20 64 65 | 74 65 72 6d 69 6e 65 64 | been de|termined|
|00000e70| 2c 20 61 6e 64 20 74 68 | 61 74 20 69 74 20 73 68 |, and th|at it sh|
|00000e80| 6f 75 6c 64 20 73 74 6f | 70 20 70 72 6f 63 65 73 |ould sto|p proces|
|00000e90| 73 69 6e 67 20 77 69 6e | 64 6f 77 73 2e 0d 20 20 |sing win|dows.. |
|00000ea0| 20 20 20 20 20 20 32 29 | 20 20 49 66 20 74 68 65 | 2)| If the|
|00000eb0| 20 63 75 72 73 6f 72 20 | 69 73 20 6e 6f 74 20 6f | cursor |is not o|
|00000ec0| 76 65 72 20 61 20 70 6f | 73 69 74 69 6f 6e 20 66 |ver a po|sition f|
|00000ed0| 6f 72 20 74 68 69 73 20 | 77 69 6e 64 6f 77 2c 20 |or this |window, |
|00000ee0| 74 68 65 6e 20 79 6f 75 | 20 73 68 6f 75 6c 64 0d |then you| should.|
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|00000f00| 72 6e 2e 20 20 59 6f 75 | 20 77 69 6c 6c 20 65 69 |rn. You| will ei|
|00000f10| 74 68 65 72 20 70 61 73 | 73 20 62 61 63 6b 20 74 |ther pas|s back t|
|00000f20| 72 75 65 20 6f 72 20 66 | 61 6c 73 65 2e 20 20 49 |rue or f|alse. I|
|00000f30| 66 20 79 6f 75 20 64 6f | 6e d5 74 20 77 69 73 68 |f you do|n.t wish|
|00000f40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 77 69 6e |. | win|
|00000f50| 64 6f 77 73 20 62 65 68 | 69 6e 64 20 74 68 69 73 |dows beh|ind this|
|00000f60| 20 77 69 6e 64 6f 77 20 | 74 6f 20 68 61 76 65 20 | window |to have |
|00000f70| 61 20 73 68 6f 74 20 61 | 74 20 63 75 72 73 6f 72 |a shot a|t cursor|
|00000f80| 20 64 65 74 65 72 6d 69 | 6e 61 74 69 6f 6e 2c 20 | determi|nation, |
|00000f90| 74 68 65 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|00000fa0| 20 72 65 74 75 72 6e 20 | 74 72 75 65 2e 20 20 54 | return |true. T|
|00000fb0| 68 69 73 20 73 74 61 74 | 65 73 20 74 68 61 74 20 |his stat|es that |
|00000fc0| 74 68 65 20 63 75 72 73 | 6f 72 20 69 73 20 22 64 |the curs|or is "d|
|00000fd0| 65 74 65 72 6d 69 6e 65 | 64 22 2e 20 20 49 74 20 |etermine|d". It |
|00000fe0| 69 73 2c 20 69 6e 20 74 | 68 65 0d 20 20 20 20 20 |is, in t|he. |
|00000ff0| 20 20 20 20 20 20 20 73 | 65 6e 73 65 20 74 68 61 | s|ense tha|
|00001000| 74 20 6e 6f 20 66 75 72 | 74 68 65 72 20 64 65 74 |t no fur|ther det|
|00001010| 65 72 6d 69 6e 61 74 69 | 6f 6e 20 77 69 6c 6c 20 |erminati|on will |
|00001020| 6f 63 63 75 72 2e 20 20 | 49 66 20 79 6f 75 20 72 |occur. |If you r|
|00001030| 65 74 75 72 6e 20 66 61 | 6c 73 65 2c 20 74 68 65 |eturn fa|lse, the|
|00001040| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 74 |n. | ot|
|00001050| 68 65 72 20 77 69 6e 64 | 6f 77 73 20 67 65 74 20 |her wind|ows get |
|00001060| 61 20 73 68 6f 74 20 61 | 74 20 64 65 74 65 72 6d |a shot a|t determ|
|00001070| 69 6e 69 6e 67 20 74 68 | 65 20 63 75 72 73 6f 72 |ining th|e cursor|
|00001080| 2e 20 20 49 66 20 74 68 | 65 72 65 20 61 72 65 20 |. If th|ere are |
|00001090| 6e 6f 20 6f 74 68 65 72 | 0d 20 20 20 20 20 20 20 |no other|. |
|000010a0| 20 20 20 20 20 77 69 6e | 64 6f 77 73 2c 20 74 68 | win|dows, th|
|000010b0| 65 6e 20 74 68 65 20 63 | 75 72 73 6f 72 20 69 73 |en the c|ursor is|
|000010c0| 20 73 65 74 20 74 6f 20 | 61 6e 20 61 72 72 6f 77 | set to |an arrow|
|000010d0| 2c 20 61 6e 64 20 67 43 | 75 72 73 6f 72 52 67 6e |, and gC|ursorRgn|
|000010e0| 20 69 73 20 73 65 74 20 | 74 6f 20 74 68 65 0d 20 | is set |to the. |
|000010f0| 20 20 20 20 20 20 20 20 | 20 20 20 61 72 65 61 20 | | area |
|00001100| 74 68 61 74 20 69 73 20 | 6f 75 74 73 69 64 65 20 |that is |outside |
|00001110| 61 6c 6c 20 77 69 6e 64 | 6f 77 73 20 66 6f 72 20 |all wind|ows for |
|00001120| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |the appl|ication.|
|00001130| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 28 43 6f |. | (Co|
|00001140| 6d 6d 6f 6e 20 63 61 73 | 65 3a 29 20 20 49 66 20 |mmon cas|e:) If |
|00001150| 79 6f 75 20 64 6f 6e d5 | 74 20 77 61 6e 74 20 77 |you don.|t want w|
|00001160| 69 6e 64 6f 77 73 20 62 | 65 68 69 6e 64 20 74 68 |indows b|ehind th|
|00001170| 69 73 20 6f 6e 65 20 74 | 6f 20 64 65 74 65 72 6d |is one t|o determ|
|00001180| 69 6e 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ine. | |
|00001190| 74 68 65 20 63 75 72 73 | 6f 72 3a 0d 20 20 20 20 |the curs|or:. |
|000011a0| 20 20 20 20 20 20 20 20 | 61 29 20 20 53 65 74 20 | |a) Set |
|000011b0| 74 68 65 20 63 75 72 73 | 6f 72 20 74 6f 20 61 6e |the curs|or to an|
|000011c0| 20 61 72 72 6f 77 2e 20 | 20 53 69 6e 63 65 20 79 | arrow. | Since y|
|000011d0| 6f 75 20 61 72 65 20 6f | 75 74 73 69 64 65 20 74 |ou are o|utside t|
|000011e0| 68 69 73 20 77 69 6e 64 | 6f 77 2c 20 74 68 65 0d |his wind|ow, the.|
|000011f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001200| 63 75 72 73 6f 72 20 73 | 68 6f 75 6c 64 20 62 65 |cursor s|hould be|
|00001210| 20 61 6e 20 61 72 72 6f | 77 2e 20 20 54 68 65 20 | an arro|w. The |
|00001220| 63 75 72 73 6f 72 20 6d | 61 79 20 62 65 20 6f 76 |cursor m|ay be ov|
|00001230| 65 72 20 74 68 65 20 64 | 65 73 6b 74 6f 70 20 6f |er the d|esktop o|
|00001240| 72 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r. | |
|00001250| 20 20 6d 65 6e 75 62 61 | 72 2c 20 6f 72 20 73 6f | menuba|r, or so|
|00001260| 6d 65 20 6f 74 68 65 72 | 20 77 69 6e 64 6f 77 20 |me other| window |
|00001270| 74 68 61 74 20 69 73 6e | d5 74 20 74 68 65 20 74 |that isn|.t the t|
|00001280| 6f 70 2d 6d 6f 73 74 20 | 77 69 6e 64 6f 77 2e 20 |op-most |window. |
|00001290| 20 41 6c 6c 20 6f 66 0d | 20 20 20 20 20 20 20 20 | All of.| |
|000012a0| 20 20 20 20 20 20 20 20 | 74 68 65 73 65 20 63 61 | |these ca|
|000012b0| 73 65 73 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |ses shou|ld have |
|000012c0| 61 6e 20 61 72 72 6f 77 | 20 63 75 72 73 6f 72 2e |an arrow| cursor.|
|000012d0| 20 20 41 6c 73 6f 2c 20 | 79 6f 75 20 6e 65 65 64 | Also, |you need|
|000012e0| 20 74 6f 20 64 69 66 66 | 20 6f 75 74 0d 20 20 20 | to diff| out. |
|000012f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 65 | | the|
|00001300| 20 77 69 6e 64 6f 77 d5 | 73 20 73 74 72 75 63 74 | window.|s struct|
|00001310| 75 72 65 20 72 65 67 69 | 6f 6e 20 66 72 6f 6d 20 |ure regi|on from |
|00001320| 67 43 75 72 73 6f 72 52 | 67 6e 2e 20 20 42 79 20 |gCursorR|gn. By |
|00001330| 64 69 66 66 69 6e 67 20 | 69 74 20 6f 75 74 2c 0d |diffing |it out,.|
|00001340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001350| 79 6f 75 20 77 69 6c 6c | 20 67 65 74 20 6d 6f 75 |you will| get mou|
|00001360| 73 65 2d 6d 6f 76 65 64 | 20 65 76 65 6e 74 73 20 |se-moved| events |
|00001370| 77 68 65 6e 20 74 68 65 | 20 63 75 72 73 6f 72 20 |when the| cursor |
|00001380| 69 73 20 6d 6f 76 65 64 | 20 62 61 63 6b 20 6f 76 |is moved| back ov|
|00001390| 65 72 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |er. | |
|000013a0| 20 20 20 74 68 69 73 20 | 77 69 6e 64 6f 77 2e 0d | this |window..|
|000013b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 29 20 20 | | b) |
|000013c0| 52 65 74 75 72 6e 20 74 | 72 75 65 2e 20 20 54 68 |Return t|rue. Th|
|000013d0| 69 73 20 74 65 6c 6c 73 | 20 44 6f 57 69 6e 64 6f |is tells| DoWindo|
|000013e0| 77 43 75 72 73 6f 72 20 | 74 68 61 74 20 74 68 65 |wCursor |that the|
|000013f0| 20 63 75 72 73 6f 72 20 | 68 61 73 0d 20 20 20 20 | cursor |has. |
|00001400| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 65 6e | | been|
|00001410| 20 64 65 74 65 72 6d 69 | 6e 65 64 2e 0d 20 20 20 | determi|ned.. |
|00001420| 20 20 20 20 20 20 20 20 | 20 28 55 6e 63 6f 6d 6d | | (Uncomm|
|00001430| 6f 6e 20 63 61 73 65 3a | 29 20 20 49 66 20 79 6f |on case:|) If yo|
|00001440| 75 20 77 61 6e 74 20 77 | 69 6e 64 6f 77 73 20 62 |u want w|indows b|
|00001450| 65 68 69 6e 64 20 74 68 | 69 73 20 6f 6e 65 20 74 |ehind th|is one t|
|00001460| 6f 20 70 6f 73 73 69 62 | 6c 79 0d 20 20 20 20 20 |o possib|ly. |
|00001470| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 74 65 72 | | deter|
|00001480| 6d 69 6e 65 20 74 68 65 | 20 63 75 72 73 6f 72 3a |mine the| cursor:|
|00001490| 20 20 52 65 74 75 72 6e | 20 66 61 6c 73 65 2e 20 | Return| false. |
|000014a0| 20 54 68 61 74 d5 73 20 | 69 74 2e 20 20 44 54 53 | That.s |it. DTS|
|000014b0| 2e 66 72 61 6d 65 77 6f | 72 6b 20 77 69 6c 6c 0d |.framewo|rk will.|
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014d0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 72 65 |automati|cally re|
|000014e0| 6d 6f 76 65 20 74 68 65 | 20 73 74 72 75 63 74 75 |move the| structu|
|000014f0| 72 65 20 72 65 67 69 6f | 6e 20 66 6f 72 20 74 68 |re regio|n for th|
|00001500| 69 73 20 77 69 6e 64 6f | 77 20 66 72 6f 6d 0d 20 |is windo|w from. |
|00001510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 67 | | g|
|00001520| 43 75 72 73 6f 72 52 67 | 6e 20 69 66 20 79 6f 75 |CursorRg|n if you|
|00001530| 20 72 65 74 75 72 6e 20 | 66 61 6c 73 65 2e 20 20 | return |false. |
|00001540| 49 66 20 79 6f 75 20 72 | 65 74 75 72 6e 20 66 61 |If you r|eturn fa|
|00001550| 6c 73 65 2c 20 44 54 53 | 2e 66 72 61 6d 65 77 6f |lse, DTS|.framewo|
|00001560| 72 6b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |rk. | |
|00001570| 20 20 20 70 72 6f 63 65 | 65 64 73 20 74 6f 20 74 | proce|eds to t|
|00001580| 68 65 20 6e 65 78 74 20 | 77 69 6e 64 6f 77 2c 20 |he next |window, |
|00001590| 69 66 20 74 68 65 72 65 | 20 69 73 20 6f 6e 65 2e |if there| is one.|
|000015a0| 20 20 49 66 20 74 68 65 | 72 65 20 61 72 65 20 6e | If the|re are n|
|000015b0| 6f 20 6d 6f 72 65 0d 20 | 20 20 20 20 20 20 20 20 |o more. | |
|000015c0| 20 20 20 20 20 20 20 77 | 69 6e 64 6f 77 73 20 62 | w|indows b|
|000015d0| 65 68 69 6e 64 20 74 68 | 69 73 20 6f 6e 65 2c 20 |ehind th|is one, |
|000015e0| 74 68 65 6e 20 44 54 53 | 2e 66 72 61 6d 65 77 6f |then DTS|.framewo|
|000015f0| 72 6b 20 73 65 74 73 20 | 74 68 65 20 63 75 72 73 |rk sets |the curs|
|00001600| 6f 72 20 74 6f 20 61 6e | 0d 20 20 20 20 20 20 20 |or to an|. |
|00001610| 20 20 20 20 20 20 20 20 | 20 61 72 72 6f 77 2c 20 | | arrow, |
|00001620| 61 6e 64 20 74 68 65 20 | 72 65 73 75 6c 74 61 6e |and the |resultan|
|00001630| 74 20 67 43 75 72 73 6f | 72 52 67 6e 20 77 69 6c |t gCurso|rRgn wil|
|00001640| 6c 20 68 61 76 65 20 61 | 6c 6c 20 6f 66 20 74 68 |l have a|ll of th|
|00001650| 65 20 73 74 72 75 63 74 | 75 72 65 0d 20 20 20 20 |e struct|ure. |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 67 69 | | regi|
|00001670| 6f 6e 73 20 66 6f 72 20 | 74 68 65 20 77 69 6e 64 |ons for |the wind|
|00001680| 6f 77 73 20 72 65 6d 6f | 76 65 64 20 66 72 6f 6d |ows remo|ved from|
|00001690| 20 69 74 2e 20 0d 0d 0d | 00 16 00 01 00 00 00 00 | it. ...|........|
|000016a0| 00 0b 00 09 00 04 00 00 | 00 09 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+